import { theme, content } from "./index"

//使用useContext优雅的处理context状态

import { useContext } from "react"

const Other = () => {

    let themeContext = useContext(theme)
    let contentContext = useContext(content)
    // console.log(themeContext)
    // console.log(contentContext)
    return (
        <fieldset>
            <legend>Other</legend>
            <h1 style={{ color: themeContext.color }}>{contentContext.text}</h1>
        </fieldset>
    )
}

export default Other